package com.ruoyi.hotel.enums;


public enum HotelRoomChangeTypeEnum {
    INCREASE(1, "涨价"),
    REDUCE(2, "降价"),
    SUPPLEMENT(3, "补充"),
    SOLDOUT(4, "售罄"),
    PUTSHELVES(5, "上架"),
    PULLSHELVES(6, "下架");

    private int key;
    private String value;


    HotelRoomChangeTypeEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public static HotelRoomChangeTypeEnum valueOFS(Integer key) {
        for (HotelRoomChangeTypeEnum hotelRoomChangeTypeEnum : HotelRoomChangeTypeEnum.values()) {
            if (key==hotelRoomChangeTypeEnum.key) {
                return hotelRoomChangeTypeEnum;
            }
        }
        return null;
    }

    public int getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
